- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.5k
 
scriptHost fix #2246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scriptHost fix #2246
Conversation
* for example when html-webpack-inline-source-plugin is used, the JS is inlined in HTML in script tag. So in this case document.currentScript.getAttribute('src') is undefined
* undefined cannot be used as string with method replace. This cause a fatal error and crash app
    
          Codecov Report
 @@            Coverage Diff            @@
##           master   #2246      +/-   ##
=========================================
+ Coverage    93.9%   93.9%   +<.01%     
=========================================
  Files          34      34              
  Lines        1279    1280       +1     
  Branches      367     368       +1     
=========================================
+ Hits         1201    1202       +1     
  Misses         71      71              
  Partials        7       7
 Continue to review full report at Codecov. 
  | 
    
| 
           @Loonride Can we add tests?  | 
    
| 
           @evilebottnawi   | 
    
For Bugs and Features; did you add new tests?
Yes
Motivation / Use-Case
Pulled in changes from here and updated the test snapshot to fix CI: #2229
Breaking Changes
N/A
Additional Info